// import { Link } from 'umi';
// import { useHistory } from 'umi';
import { history } from 'umi';
import { Button, Input } from 'antd';

const Index = () => {
  // const history = useHistory();
  const goAbout = () => {
    history.push('/about');
  };

  return (
    <>
      <div className="about">
        热映页面
        {/* - <Link to="/about">关于页</Link> */}
        <button onClick={goAbout}>btn</button>
        <Button type="primary">Primary Button</Button>
        <Input placeholder="Basic usage" />
      </div>
    </>
  );
};

export default Index;
